/**
 * 
 */
package com.desksoft.ecommerce.vo.logistics;

import java.util.List;

import com.desksoft.ecommerce.entity.logistics.dto.Module;


/***************************************
 * <pre>
 * 版权所有：杭州迪科软件 保留所有权利
 * 创建日期: Jun 23, 2011 2:41:28 PM
 * 创建作者：yejw
 * 文件名称：ModuleVO.java
 * 版本：
 * 功能：
 * 最后修改时间：Jun 23, 2011 2:41:28 PM
 * 修改记录：
 * </pre>
 *****************************************/

public class ModuleVO extends Module {

	/**
	 * 
	 */
	public final static String USERID_MODULE  = "0000";
	public final static int POWER_MODULE   = 15;
	public final static int QXTYPE_MODULE  = 0;
	public final static int MODUTYPE_MODULE  = 0;
	public final static String GROUPID_MODULE  = "B";
	public final static String ISALIVE_MODULE  = "Y";
	public ModuleVO() {
	};

	public ModuleVO(Integer mlevel) {
		super.setMlevel(mlevel);
	};
	private static final long serialVersionUID = 790009013602070269L;
	
	private Integer power;
	
    private Integer modutype;

    private String persid;

    private Integer qxtype;

    private String userid;
    
    private boolean allChildren = true;		//	是否查询所有子节点，还是只查询第一层子节点

    private boolean ismoduid;//是否存在
    
    private Integer sum;
	
	public Integer getSum() {
		return sum;
	}
	public void setSum(Integer sum) {
		this.sum = sum;
	}
    
    private List<Object[]> modutidListArray;
	public List<Object[]> getModutidListArray() {
		return modutidListArray;
	}

	public void setModutidListArray(List<Object[]> modutidListArray) {
		this.modutidListArray = modutidListArray;
	}

	public boolean isIsmoduid() {
		return ismoduid;
	}

	public void setIsmoduid(boolean ismoduid) {
		this.ismoduid = ismoduid;
	}

	public Integer getPower() {
		return power;
	}

	public void setPower(Integer power) {
		this.power = power;
	}

	public Integer getModutype() {
		return modutype;
	}

	public void setModutype(Integer modutype) {
		this.modutype = modutype;
	}

	public String getPersid() {
		return persid;
	}

	public void setPersid(String persid) {
		this.persid = persid;
	}

	public Integer getQxtype() {
		return qxtype;
	}

	public void setQxtype(Integer qxtype) {
		this.qxtype = qxtype;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public boolean isAllChildren() {
		return allChildren;
	}

	public void setAllChildren(boolean allChildren) {
		this.allChildren = allChildren;
	}

	public String generateKey() {
		String sep = "_";
		return new StringBuffer()
		.append(this.userid)
		.append(sep)
		.append(this.persid)
		.append(sep)
		.append(this.qxtype)
		.append(sep)
		.append(this.modutype)
		.append(sep)
		.append(this.getGroupid())
		.append(sep)
		.append(this.getFather())
		.toString();
	}
}
